package Operation;

import book.Booklist;
import book.Book;
public class ShowOperation implements IOperation{
    public void work(Booklist booklist) {
        System.out.println("展示图书");
        int currentSize = booklist.getUsedSize();
        for (int i = 0; i <currentSize ; i++) {
            Book book = booklist.getBooks(i);
            System.out.println(book);
        }
    }
}
